package com.youkeyi.ddy.cloud.common.api.basic.crm.supplier;

import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.dto.CrmSupplierListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.param.CrmSupplierCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.param.CrmSupplierDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.param.CrmSupplierQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.supplier.param.CrmSupplierUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * CrmSupplierCloudService
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-CRM", fallback = CrmSupplierCloudServiceFallback.class)
@RequestMapping("/crm/supplier")
public interface CrmSupplierCloudService {

    /**
     * 查询合作商列表.
     *
     * @param param the param
     * @return the supplier list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract CrmSupplierListCloudDto query(@RequestBody CrmSupplierQueryCloudParam param);

    /**
     * 新增合作商.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody CrmSupplierCreateCloudParam param);

    /**
     * 编辑合作商.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody CrmSupplierUpdateCloudParam param);

    /**
     * 删除合作商.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody CrmSupplierDeleteCloudParam param);
    
}
